import request from '@/utils/request'

// 查询个性化诉求列表
export function listPersonalizedrequests(query) {
  return request({
    url: '/system/personalizedrequests/list',
    method: 'get',
    params: query
  })
}

// 查询个性化诉求详细
export function getPersonalizedrequests(id) {
  return request({
    url: '/system/personalizedrequests/' + id,
    method: 'get'
  })
}

// 新增个性化诉求
export function addPersonalizedrequests(data) {
  return request({
    url: '/system/personalizedrequests',
    method: 'post',
    data: data
  })
}

// 修改个性化诉求
export function updatePersonalizedrequests(data) {
  return request({
    url: '/system/personalizedrequests',
    method: 'put',
    data: data
  })
}

// 删除个性化诉求
export function delPersonalizedrequests(id) {
  return request({
    url: '/system/personalizedrequests/' + id,
    method: 'delete'
  })
}
